// 生成pdf标签
appModule.factory(
  'generatePdf',
  function() {
    return function(val) {
      return '<object style="position:relative;z-index: 0" data="'+val+'"  type="application/pdf" class="pdfObject" width="500px" height="500px">\n' +
        '        <iframe src="'+val+'" width="500px" height="500px" class="pdfIframe" style="border: none;">\n' +
        '          <a href="'+val+'">Download PDF</a>\n' +
        '        </iframe>\n' +
        '      </object>'
    };
  }
);
